    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>autocomplete</title>
    </head>
    <body>
    <form action="">
        <fieldset>
            <legend>我是来验证的</legend>
            <label for="">
                <input type="text"  name="text" autocomplete="on" required>
            </label>
            <input type="submit" value="提交" name="submit">
        </fieldset>
    </form>

    </body>
    </html>